package com.s7.pull.footer;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.TextView;

import com.s7.pull.R;
import com.s7.pull.internal.InternalClassics;

public class ClassicsFooter extends InternalClassics<ClassicsFooter> {

    public ClassicsFooter(Context context) {
        this(context, null);
    }

    public ClassicsFooter(Context context, AttributeSet attrs) {
        super(context, attrs, 0);

        View.inflate(context, R.layout.pull_footer, this);

        final View thisView = this;
        final View arrowView = mArrowView = thisView.findViewById(R.id.pull_arrow);
        final View progressView = mProgressView = thisView.findViewById(R.id.pull_progress);
        final TextView mTipsText = thisView.findViewById(R.id.pull_tips);

        progressView.animate().setInterpolator(null);

        if (thisView.isInEditMode()) {
            arrowView.setVisibility(GONE);
        } else {
            progressView.setVisibility(GONE);
        }
    }

}
